Skip to content

Revert "Security for beginners"#16

Merged
KyFaSt merged 1 commit intomainfrom
revert-3-security-for-beginners
Jan 12, 2026
Merged

Revert "Security for beginners"#16
KyFaSt merged 1 commit intomainfrom
revert-3-security-for-beginners

Conversation

@KyFaSt
Copy link
Copy Markdown
Collaborator

@KyFaSt KyFaSt commented Jan 12, 2026

Reverts #3

Copilot AI review requested due to automatic review settings January 12, 2026 17:18
@KyFaSt KyFaSt merged commit 525cd8e into main Jan 12, 2026
4 of 5 checks passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This pull request reverts PR #3 "Security for beginners", which had added intentionally vulnerable code for GitHub Advanced Security demonstration purposes. The revert removes all vulnerable code, exposed secrets, and returns the repository to a minimal state.

Changes:

  • Removed all intentionally vulnerable API endpoints (command injection, SQL injection, path traversal, XSS demos)
  • Deleted configuration files containing hardcoded secrets and vulnerable dependencies
  • Reverted README to simple project description
  • Restored proper .env file ignoring in .gitignore

Reviewed changes

Copilot reviewed 12 out of 14 changed files in this pull request and generated no comments.

Show a summary per file
File Description
.env Deleted file containing demo secrets (AWS keys, Stripe keys, GitHub tokens, database credentials)
.eslintrc.json Deleted ESLint configuration
.gitignore Reverted to standard Next.js gitignore with proper .env exclusion
README.md Reverted from extensive security demo documentation to minimal project description
config.js Deleted file with hardcoded API keys and credentials
lib/db.js Deleted file with SQL injection vulnerabilities
next.config.js Deleted Next.js configuration
package.json Deleted with vulnerable dependencies (axios 0.21.1, lodash 4.17.19, etc.)
pages/_app.js Deleted Next.js app component
pages/api/display-message.js Deleted XSS vulnerability demo endpoint
pages/api/download.js Deleted path traversal vulnerability demo endpoint
pages/api/user-search.js Deleted command injection vulnerability demo endpoint
pages/index.js Deleted main page with security demo documentation
styles/globals.css Deleted global styles

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@LadyKerr LadyKerr deleted the revert-3-security-for-beginners branch January 20, 2026 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants